<!-- 模板：用户充值 -->
<script id="tpl-recharge" type="text/template">
    <div class="am-padding-xs am-padding-top-sm">
        <div class="am-form-group">
            <label class="am-u-sm-3 am-form-label">当前余额</label>
            <div class="am-u-sm-8 am-u-end">
                <input type="hidden" name="data[user_id]" value="{{ user_id }}">
                <div class="am-form--static">{{ money }}</div>
            </div>
        </div>
        <div class="am-form-group">
            <label class="am-u-sm-3 am-form-label">充值方式</label>
            <div class="am-u-sm-8 am-u-end">
                <label class="am-radio-inline">
                    <input type="radio" name="data[mode]" value="10" data-am-ucheck checked> 增加
                </label>
                <label class="am-radio-inline">
                    <input type="radio" name="data[mode]" value="20" data-am-ucheck> 减少
                </label>
                <label class="am-radio-inline">
                    <input type="radio" name="data[mode]" value="30" data-am-ucheck> 最终金额
                </label>
            </div>
        </div>
        <div class="am-form-group">
            <label class="am-u-sm-3 am-form-label form-require">变更金额</label>
            <div class="am-u-sm-8 am-u-end">
                <input type="number" min="0" class="tpl-form-input" placeholder="请输入要变更的金额" name="data[value]" value="" required>
            </div>
        </div>
        {if $user['applet']['shop_mode']['value']==20}
        <div class="am-form-group">
            <label class="am-u-sm-3 am-form-label form-require">选择门店</label>
            <div class="am-u-sm-8 am-u-end">
                <select name="data[shop_id]" required >
                    <option value="">请选择门店</option>
                    {if isset($shop)}
                        {foreach $shop as $item}
                        <option value="{$item['shop_id']}">{$item['shop_name']}</option>
                        {/foreach}
                    {/if}
                </select>
            </div>
        </div>
        {/if}
        <div class="am-form-group">
            <label class="am-u-sm-3 am-form-label">备注</label>
            <div class="am-u-sm-8 am-u-end">
                <textarea rows="2" name="data[remark]" placeholder="请输入管理员备注" class="am-field-valid"></textarea>
            </div>
        </div>
    </div> 
</script>